package com.zian.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;


import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zian.enums.GoodsSellStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "sys_goods_info", autoResultMap = true)
 @ApiModel(  "SysGoodsInfo对象")
public class SysGoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

     @ApiModelProperty(  "商品表主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

     @ApiModelProperty(  "商品名")
    private String goodsName;

     @ApiModelProperty(  "商品简介")
    private String goodsIntro;

     @ApiModelProperty(  "关联分类id")
    private Long goodsCategoryId;

     @ApiModelProperty(  "商品主图")
    private String goodsCoverImg;

     @ApiModelProperty(  "商品轮播图 多种json")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> goodsCarousel;

     @ApiModelProperty(  "商品详情")
    private String goodsDetailContent;

     @ApiModelProperty(  "商品价格")
    private BigDecimal originalPrice;

     @ApiModelProperty(  "商品实际售价")
    private BigDecimal sellingPrice;

     @ApiModelProperty(  "商品库存数量")
    private Integer stockNum;

     @ApiModelProperty(  "商品标签")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tag;

     @ApiModelProperty(  "商品上架状态 1-下架 0-上架")
    private GoodsSellStatusEnum goodsSellStatus;

     @ApiModelProperty(  "添加者主键id")
    private Long createUser;

     @ApiModelProperty(  "商品添加时间")
    private LocalDateTime createTime;

     @ApiModelProperty(  "修改者主键id")
    private Long updateUser;

     @ApiModelProperty(  "商品修改时间")
    private LocalDateTime updateTime;


}
